import axios from 'axios';

const api = axios.create({
  baseURL: 'http://localhost:8080/api',
});

export default {
  createOrder(orderData) {
    return api.post('/orders/create', orderData);
  },
  getOrder(id) {
    return api.get(`/orders/${id}`);
  }
}